
package DataAcess;

import java.io.Serializable;


/*
 * Class ID	: SE715
 * Student ID	: 02967
 * Student Name : Vu Ngoc Trung
 * Due Date     : Jul 13, 2013
 * I declare that this assignment is my own work in accordance with FPT Policy.
 */
public class Bus implements Serializable {

    private int number;
    private String name;
    private String go;
    private String back;

    public Bus() {
        number=0;
        name="";
        go="";
        back="";
    }

    public Bus(int number, String name, String go, String back) {
        this.number = number;
        this.name = name;
        this.go = go;
        this.back = back;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGo() {
        return go;
    }

    public void setGo(String go) {
        this.go = go;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    @Override
    public String toString() {
        return "Number: " + number + "\n" + "Name: " + name + "\n" + "Go: " + go + "\n" + "Back: " + back;
    }
}
